package com.zhu.websocketdemo.service;

import com.zhu.websocketdemo.pojo.PrivateMessage;

import java.util.List;

public interface IPrivateMessage {
    PrivateMessage save(PrivateMessage privateMessage);
    List<PrivateMessage> findByFromUser(String fromUser);
    List<PrivateMessage> findByToUser(String toUser);
}
